package com.gitee.starblues.grape.core.exception;


public class ChailvException extends Exception {
	private static final long serialVersionUID = 5157611863763673836L;
	private ChailvErrorCode code;
	
    public ChailvException(ChailvErrorCode code, String message) {
        super(message);
        this.code = code;
    }
    
    public ChailvErrorCode getAuthErrorCode(){
    	return code;
    }

    public ChailvException(ChailvErrorCode code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
